package zy1;

public class Test {
    public static void main(String[] args) {
        Master master = new Master();
        Dog dog = new Dog("小黑",3,"黑色");
        master.feed(dog,new Bone());
        Cat cat = new Cat("小黑",3,"黑色");
        master.feed(cat,new Fish());
    }
}
